//
//  myCollectCtrl.m
//  spotrs
//
//  Created by sky on 16/5/17.
//  Copyright © 2016年 TZ. All rights reserved.
//

#import "myCollectCtrl.h"
#import "myCollectCell.h"

@interface myCollectCtrl ()<UITableViewDelegate,UITableViewDataSource>
{
    UITableView *_table;
}

@end

@implementation myCollectCtrl

- (void)viewDidLoad {
    [super viewDidLoad];
    [self buildLayout];
    // Do any additional setup after loading the view.
}

-(void)buildLayout{
    self.view.backgroundColor = [LCCommon getColor:@"f6f7f8"];
    self.titleText = @"我的收藏";
    [self creatTopNavagaiong];
    [self liftGoBackImage];
    
    _table = [[UITableView alloc]initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, SCREEN_HEIGHT - 64)];
    INIT_TABLE(_table);
    [self.view addSubview:_table];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



#pragma -mark tableViewDelegate

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 1;
}


- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath
{
    return 884/3;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *SimpleTableIdentifier = @"SimpleTableIdentifier";
    myCollectCell *cell = [tableView dequeueReusableCellWithIdentifier:SimpleTableIdentifier];
    if (!cell) {
        cell = [[myCollectCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"recordsIdentifier"];
    }
    //赋值
    //cell.textLabel.text = [_arr objectAtIndex:indexPath.row];
    cell.backgroundColor = [UIColor clearColor];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return cell;
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
